<div class="hp-tab-newprd">
    <?php if(arg(2) == "edit"){?>
            <ul class="j-sw-nav">
                <li class="newprd-s1 tab-li"><a href="<?php echo base_path();?>village/plant/list">查看</a></li>
                <?php if(user_access('add village_plant')){?>
                <li class="newprd-s2 tab-li"><a href="<?php echo base_path();?>village/plant/add">添加</a></li>
                <?php }?>
                <li class="newprd-s1 tab-li on"><a href="javascript:void(0)">修改</a></li>
            </ul>
        <?php }else{?>
            <ul class="j-sw-nav">
                <li class="newprd-s1 tab-li"><a href="<?php echo base_path();?>village/plant/list">查看</a></li>
                <?php if(user_access('add village_plant')){?>
                <li class="newprd-s2 tab-li on"><a href="<?php echo base_path();?>village/plant/add">添加</a></li>
                <?php }?>
            </ul>
        <?php }?>
    <div class="table-div">
        <div class="newprd-s2">
            <?php  print _address_render_for_add($form)?>
            <div class="small-select small-input column" style="clear:both">
                <div class="form-label">请选作物:</div><?php print render($form['plant']); ?>
            </div>

            <div class="small-select small-input column" style="clear:both">
                <div class="form-label">种植面积(亩):</div><?php print render($form['area']); ?>
            </div>

            <div class="small-select small-input column" style="clear:both">
                <div class="form-label">亩产量(千克/亩):</div><?php print render($form['acre_yield']); ?>
            </div>

            <div class="small-select small-input column" style="clear:both">
                <div class="form-label">价格(元/千克):</div><?php print render($form['price']); ?></div>
        </div>

        <div class="add-submit" style="text-align: center"><?php print render($form['submit']); ?></div>
    </div>
</div>

</div>

<?php print drupal_render_children($form); ?>

